<template>
  <div>
    <div class="top">
        <div class="title">
            <span @click="back">&lt;</span>
            <p>设置</p>
        </div>
    </div>
    <div class="bottom">
        <div class="one">
            <van-cell is-link @click="person">个人资料</van-cell>
            <van-cell is-link @click="address">常用地址</van-cell>
            <van-cell is-link>消息推送</van-cell>
            <van-cell is-link>第三方绑定</van-cell>
            <hr>
            <van-cell is-link>关注公众号</van-cell>
            <van-cell is-link>用户协议</van-cell>
            <van-cell is-link>隐私政策</van-cell>
            <van-cell is-link @click="about">关于我们</van-cell>
        </div>
        <div class="two">
            <van-button round type="info" class="logout" @click="quit">退出登录</van-button>
        </div>
    </div>
  </div>
</template>

<script>
export default {
    methods: {
        address(){
            this.$router.push("/magaddress")
            
        },
        person(){
            this.$router.push("/person")
        },
        about(){
            this.$router.push("/aboutour")
        },
        back(){
            this.$router.back()
        },
        quit(){
            localStorage.removeItem("token")
            this.$router.back()
        }
    },
}
</script>

<style lang="scss" scoped>
.top{
    height: 0.58rem;
    // background-color: aqua;
    box-sizing: border-box;
    padding: 0 0.28rem;
    border-bottom: 2px solid #E6E6E6;
    .title{
        width: 53%;
        height: 0.58rem;
        font-size: 0.18rem;
        line-height: 0.58rem;
        display: flex;
        justify-content: space-between;
        p{
            font-weight: 600;
            color: #333333;
        }
    }
}
.bottom{
    box-sizing: border-box;
    padding: 0.25rem 0.28rem;
    .van-cell{
        padding:0;
        font-size:0.16rem;
        height:0.22rem;
        line-height:0.22rem;
        margin-bottom: 0.2rem;
        .van-cell__value--alone{
            color:#333333
        }
        .van-cell__right-icon{
            color:#333333
        }
    }
    hr{
        border:1px solid #E6E6E6;
        margin-bottom: 0.2rem;
    }
    .logout{
        width: 100%;
        height: 0.56rem;
        background: #5FCBBB;
        border-radius: 0.28rem;
        border: 0;
        font-size: 0.18rem;
        font-weight: 600;
        margin-top: 1.39rem;
    }
}
</style>